package com.yvon.service.demo.algorithm.offer;

/**
 * @author : Yvon
 * @since : 2022-07-18
 */
public class P05 {

    public static void main(String[] args) {
        Solution solution = new P05().new Solution();
        System.out.println(solution.replaceSpace("I AM STUDENT"));
    }
    class Solution {
        public String replaceSpace(String s) {
            return s.replaceAll(" ", "%20");
        }
    }
}
